<?php
include("../inc/Function.php");
if($_SESSION['a']['alevel']!=5 && $power['jjjl']!=1){
	echo "<script>alert('权限不足');window.location.href='index.php';</script>";exit;
}
$list1 = taglist(1);
$list2 = taglist(2);
$catid = isset($_GET['id'])?$_GET['id']:0;
$act = isset($_GET['act'])?$_GET['act']:"";
$info = taginfo($catid);
if($info){
	$msg = 2;
	$tpl->assign("info",$info);
}elseif($act=='add'){
	$msg = 1;
}else{
	$msg = 0;
}
$tpl->assign("msg",$msg);
$tpl->assign("menu",$menu);
$tpl->assign('clist1',$list1);
$tpl->assign('clist2',$list2);
$tpl->assign('sxarr',$sxarr);
$tpl->show('taglist');
?>